//
//  LView.m
//  登录高级版
//
//  Created by dlios on 15-1.5-18.
//  Copyright (c) 2015年 ClearLove.com All rights reserved.
//

#import "LView.h"

@implementation LView
- (void)dealloc
{
    [_label release];
    [_textField release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self Subviews];
    }
    return self;
}
- (void)Subviews
{
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, 80, 40)];
    [self addSubview:self.label];
    [_label release];
    
    self.textField  = [[UITextField alloc] initWithFrame:CGRectMake(100, 20, 200, 40)];
    self.textField.borderStyle = UITextBorderStyleRoundedRect;
    self.textField.delegate = self;
    [self addSubview:self.textField];
    [self.textField release];
    
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return YES;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
